package com.zhonghan.recharge.dao;
import com.zhonghan.recharge.pojo.ApplyBuyCardOrder;
import java.util.List;
public interface ApplyBuyCardOrderDao{
	/**
	 * 获得ApplyBuyCardOrder数据的总行数
	 * @return
	 */
    long getApplyBuyCardOrderRowCount();
	/**
	 * 获得ApplyBuyCardOrder数据集合
	 * @return
	 */
    List<ApplyBuyCardOrder> selectApplyBuyCardOrder();
	/**
	 * 获得一个ApplyBuyCardOrder对象,以参数ApplyBuyCardOrder对象中不为空的属性作为条件进行查询
	 * @param obj
	 * @return
	 */
    List<ApplyBuyCardOrder> selectApplyBuyCardOrderByObj(ApplyBuyCardOrder obj);
	/**
	 * 通过ApplyBuyCardOrder的id获得ApplyBuyCardOrder对象
	 * @param id
	 * @return
	 */
    ApplyBuyCardOrder selectApplyBuyCardOrderById(Integer id);
	/**
	 * 插入ApplyBuyCardOrder到数据库,包括null值
	 * @param value
	 * @return
	 */
    int insertApplyBuyCardOrder(ApplyBuyCardOrder value);
	/**
	 * 插入ApplyBuyCardOrder中属性值不为null的数据到数据库
	 * @param value
	 * @return
	 */
    int insertNonEmptyApplyBuyCardOrder(ApplyBuyCardOrder value);
	/**
	 * 批量插入ApplyBuyCardOrder到数据库,包括null值
	 * @param value
	 * @return
	 */
    int insertApplyBuyCardOrderByBatch(List<ApplyBuyCardOrder> value);
	/**
	 * 通过ApplyBuyCardOrder的id删除ApplyBuyCardOrder
	 * @param id
	 * @return
	 */
    int deleteApplyBuyCardOrderById(Integer id);
	/**
	 * 通过ApplyBuyCardOrder的id更新ApplyBuyCardOrder中的数据,包括null值
	 * @param enti
	 * @return
	 */
    int updateApplyBuyCardOrderById(ApplyBuyCardOrder enti);
	/**
	 * 通过ApplyBuyCardOrder的id更新ApplyBuyCardOrder中属性不为null的数据
	 * @param enti
	 * @return
	 */
    int updateNonEmptyApplyBuyCardOrderById(ApplyBuyCardOrder enti);
    /**
     * 通过条件查询
     * @param id
     * @param orderStatus
     * @param telephone
     * @return
     */
	List<ApplyBuyCardOrder> selectApplyBuyCardOrderByCondition(ApplyBuyCardOrder order);
}